package com.sg.dto.integration.component;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc RemoveSenderMemberChannelDto
 * @使用场景
 */
@Data
public class RemoveSenderMemberChannelDto
        extends BaseDto
        implements Serializable {

    /**
     * 归属身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 归属个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        RemoveSenderMemberChannelDto that = (RemoveSenderMemberChannelDto) o;
        return (
                originalRoleMemberId == that.originalRoleMemberId && userId == that.userId
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), originalRoleMemberId, userId);
    }

}
